import Vue from "vue";
import App from "./App.vue";

// 导入路由
import router from "@/router/index";

// 引入vant的css样式
import "vant/lib/index.less";

// 引入vant组件
import { Tabbar, TabbarItem } from "vant";
import { NavBar } from "vant";
import { Swipe, SwipeItem } from "vant";
import { Lazyload } from "vant";
import { Col, Row } from "vant";
import { Image as VanImage } from "vant";
import { Field } from "vant";
import { Button } from "vant";
import { Toast } from "vant";
import { Icon } from "vant";
import { Tab, Tabs } from "vant";
import { Empty } from "vant";
import { List } from "vant";
import { Stepper } from "vant";
import { Switch } from "vant";
import { Badge } from "vant";

Vue.use(Badge);
Vue.use(Switch);
Vue.use(Stepper);
Vue.use(List);
Vue.use(Empty);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Icon);
Vue.use(Toast);
Vue.use(Button);
Vue.use(Field);
Vue.use(VanImage);
Vue.use(Col);
Vue.use(Row);
Vue.use(Lazyload);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);

Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
